﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="listproduct.ascx.cs" Inherits="control_client_listproduct" %>
<%@ Register src="rate.ascx" tagname="rate" tagprefix="uc1" %>
<div class="blog">                                                                                                        
    <div class="slide-vstech">
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="500" height="200" id="Object6" align="middle" >
            <param name="movie" value="download/media/swf/desktop_vsc.swf" />
            <param name="quality" value="high" />
            <param name="allowFullScreen" value="true" />
            <param name="wmode" value="transparent" />
            <param name="allowScriptAccess" value="always" />
            <param name="_flashcreator" value="http://www.photo-flash-maker.com" />
            <param name="_flashhost" value="http://www.go2album.com" />
            <embed src="download/media/swf/desktop_vsc.swf" width="500" height="200" quality="high" allowFullScreen="true" wmode="transparent" allowScriptAccess="always" name="tech" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
        </object>
    </div><br />
    <asp:DataList Width="500px" ID="dlProductList" runat="server" RepeatColumns="2" 
        DataKeyField="Id" onitemcommand="dlProductList_ItemCommand" 
        RepeatDirection="Horizontal" GridLines="Both">
    <ItemTemplate>
            <table style="width:250px">
        <tr>
            <td valign="top" style="width:230px; padding:0">
                <table>
                    <tr>
                        <td colspan="2"><b><%# Eval("TenSanPham") %> 
                    </tr>
                    <tr>
                        <td valign="bottom"><a href="<%# "images/products/thumb/" + Eval("Hinh") %>"><img src="<%# "images/products/thumb/" + Eval("Hinh") %>" alt="<%# Eval("TenSanPham") %>" width="110px" height="91px" /></a></td>
                        <td valign="bottom">
                            <asp:ImageButton ID="ImageButton1" runat="server" 
                                ImageUrl="~/images/button/buy.png" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="color:Red; font-style:italic; font-weight:bold">Thông tin sản phẩm:</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <%# Eval("MoTa") %>...   
<%--                            <a href="#">Chi tiết...</a>
--%>                            <asp:LinkButton ID="lbChiTiet" runat="server" >Chi tiết....</asp:LinkButton>
                    </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="color:Red; font-style:italic; font-weight:bold">Khuyến mãi:</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <%# Eval("KhuyenMai") %>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:right; color:Red; font-style:italic; font-weight:bold" colspan="2">Giá: <%# Eval("DonGia") %></td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <uc1:rate ID="rate" runat="server" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td><img style="margin-left:10px" src="images/bg/link_shadow_hor.png" width="200px" alt="" /></td>
        </tr>
        
    </table>

    </ItemTemplate></asp:DataList>
    <hr />  
    <%--<asp:DataPager ID="DataPager1" PageSize="6" PagedControlID="dlProductList" runat="server">
    <Fields>
    <asp:NumericPagerField />
    </Fields>
    </asp:DataPager> --%>  <center>
	<ul class="pagination">
       
                                    <table cellpadding="0" border="0" id="PhanTrang" runat ="server">
                                        <tr>
                                            <td align="right">
                                                <asp:LinkButton ID="lbtnFirst" runat="server" CausesValidation="false" OnClick="lbtnFirst_Click">Trang đầu</asp:LinkButton>
                                                &nbsp;</td>
                                            <td align="right">
                                                <asp:LinkButton ID="lbtnPrevious" runat="server" CausesValidation="false" OnClick="lbtnPrevious_Click">Trang trước</asp:LinkButton>&nbsp;&nbsp;</td>
                                            <td align="center" valign="middle">
                                                <asp:DataList ID="dlPaging" runat="server" RepeatDirection="Horizontal" OnItemCommand="dlPaging_ItemCommand"
                                                    OnItemDataBound="dlPaging_ItemDataBound">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='<%# Eval("PageIndex") %>'
                                                            CommandName="Paging" Text='<%# Eval("PageText") %>'></asp:LinkButton>&nbsp;
                                                    </ItemTemplate>
                                                </asp:DataList>
                                            </td>
                                            <td align="left">
                                                &nbsp;&nbsp;<asp:LinkButton ID="lbtnNext" runat="server" CausesValidation="false"
                                                    OnClick="lbtnNext_Click">Trang tiếp</asp:LinkButton></td>
                                            <td align="left">
                                                &nbsp;
                                                <asp:LinkButton ID="lbtnLast" runat="server" CausesValidation="false" OnClick="lbtnLast_Click">Trang cuối</asp:LinkButton></td>
                                        </tr>
                                        <tr>
                                            <td colspan="5" align="center" style="height: 30px" valign="middle">
                                                <asp:Label ID="lblPageInfo" runat="server"></asp:Label></td>
                                        </tr>
                                    </table>
    </ul>	                                    </center>
	        
</div>